home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / Aztec C 5.0a disk 1.adf / include / graphics / clip.h next >
C/C++ Source or Header  |  1988-07-15  |  1KB  |  53 lines

  1. #ifndef    GRAPHICS_CLIP_H
  2. #define    GRAPHICS_CLIP_H
  3. #ifndef    GRAPHICS_GFX_H
  4. #include    <graphics/gfx.h>
  5. #endif
  6. #ifndef    EXEC_SEMAPHORES_H
  7. #include    <exec/semaphores.h>
  8. #endif
  9. #define    NEWLOCKS
  10. struct    Layer
  11. {
  12. struct    Layer    *front,*back;
  13. struct    ClipRect    *ClipRect;
  14. struct    RastPort    *rp;
  15. struct    Rectangle    bounds;
  16. UBYTE    reserved[4];
  17. UWORD    priority;
  18. UWORD    Flags;
  19. struct    BitMap    *SuperBitMap;
  20. struct    ClipRect    *SuperClipRect;
  21. APTR    Window;
  22. SHORT    Scroll_X,Scroll_Y;
  23. struct    ClipRect    *cr,*cr2,*crnew;
  24. struct    ClipRect    *SuperSaveClipRects;
  25. struct    ClipRect    *_cliprects;
  26. struct    Layer_Info    *LayerInfo;
  27. struct    SignalSemaphore    Lock;
  28. UBYTE    reserved3[8];
  29. struct    Region    *ClipRegion;
  30. struct    Region    *saveClipRects;
  31. UBYTE    reserved2[22];
  32. struct    Region    *DamageList;
  33. };
  34. struct    ClipRect
  35. {
  36. struct    ClipRect    *Next;
  37. struct    ClipRect    *prev;
  38. struct    Layer    *lobs;
  39. struct    BitMap    *BitMap;
  40. struct    Rectangle    bounds;
  41. struct    ClipRect    *_p1,*_p2;
  42. LONG    reserved;
  43. #ifdef    NEWCLIPRECTS_1_1
  44. LONG    Flags;
  45. #endif
  46. };
  47. #define    CR_NEEDS_NO_CONCEALED_RASTERS    1
  48. #define    ISLESSX    1
  49. #define    ISLESSY    2
  50. #define    ISGRTRX    4
  51. #define    ISGRTRY    8
  52. #endif
  53.